﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.MachineModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete</h2>

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">SerialNo</div>
        <div class="display-field"><%= Html.Encode(Model.SerialNo) %></div>
        
        <div class="display-label">ModelId</div>
        <div class="display-field"><%= Html.Encode(Model.ModelId) %></div>
        
        <div class="display-label">Brand</div>
        <div class="display-field"><%= Html.Encode(Model.Brand) %></div>
        
        <div class="display-label">NameTh</div>
        <div class="display-field"><%= Html.Encode(Model.NameTh) %></div>
        
        <div class="display-label">NameEng</div>
        <div class="display-field"><%= Html.Encode(Model.NameEng) %></div>

        <div class="display-label">Max Meter No.</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.max_meter_no)) %></div>
        <div class="display-label">Start Meter No.</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.start_meter_no)) %></div>
        
        <div class="display-label">Last Meter No.</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.last_meter_no)) %></div>
        
       <%-- <div class="display-label">Status</div>
        <div class="display-field"><%= Html.Encode(Model.Status) %></div>--%>
        
        <div class="display-label">CreateBy</div>
        <div class="display-field"><%= Html.Encode(Model.CreateBy) %></div>
        
        <div class="display-label">CreateOn</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.CreateOn)) %></div>
        
        <div class="display-label">UpdateBy</div>
        <div class="display-field"><%= Html.Encode(Model.UpdateBy) %></div>
        
        <div class="display-label">UpdateOn</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.UpdateOn)) %></div>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input class="buttonSummit" type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

